package com.ruoyi.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备信息对象 device_information
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
public class DeviceInformation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备id */
    private Long did;

    /** 设备类型id */
    @Excel(name = "设备类型id")
    private String dtId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String dname;

    /** 设备品牌 */
    @Excel(name = "设备品牌")
    private String dbrand;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String dmodel;

    /** 设备价格 */
    @Excel(name = "设备价格")
    private BigDecimal dprice;

    /** 设备日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ddate;

    /** 供应商id */
    @Excel(name = "供应商id")
    private String supplierId;

    /** 备用1 */
    @Excel(name = "备用1")
    private String spare1;

    /** 备用2 */
    @Excel(name = "备用2")
    private String spare2;

    /** 备用3 */
    @Excel(name = "备用3")
    private String spare3;

    /** 备用4 */
    @Excel(name = "备用4")
    private String spare4;

    public void setDid(Long did) 
    {
        this.did = did;
    }

    public Long getDid() 
    {
        return did;
    }
    public void setDtId(String dtId) 
    {
        this.dtId = dtId;
    }

    public String getDtId() 
    {
        return dtId;
    }
    public void setDname(String dname) 
    {
        this.dname = dname;
    }

    public String getDname() 
    {
        return dname;
    }
    public void setDbrand(String dbrand) 
    {
        this.dbrand = dbrand;
    }

    public String getDbrand() 
    {
        return dbrand;
    }
    public void setDmodel(String dmodel) 
    {
        this.dmodel = dmodel;
    }

    public String getDmodel() 
    {
        return dmodel;
    }
    public void setDprice(BigDecimal dprice) 
    {
        this.dprice = dprice;
    }

    public BigDecimal getDprice() 
    {
        return dprice;
    }
    public void setDdate(Date ddate) 
    {
        this.ddate = ddate;
    }

    public Date getDdate() 
    {
        return ddate;
    }
    public void setSupplierId(String supplierId) 
    {
        this.supplierId = supplierId;
    }

    public String getSupplierId() 
    {
        return supplierId;
    }
    public void setSpare1(String spare1) 
    {
        this.spare1 = spare1;
    }

    public String getSpare1() 
    {
        return spare1;
    }
    public void setSpare2(String spare2) 
    {
        this.spare2 = spare2;
    }

    public String getSpare2() 
    {
        return spare2;
    }
    public void setSpare3(String spare3) 
    {
        this.spare3 = spare3;
    }

    public String getSpare3() 
    {
        return spare3;
    }
    public void setSpare4(String spare4) 
    {
        this.spare4 = spare4;
    }

    public String getSpare4() 
    {
        return spare4;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("did", getDid())
            .append("dtId", getDtId())
            .append("dname", getDname())
            .append("dbrand", getDbrand())
            .append("dmodel", getDmodel())
            .append("dprice", getDprice())
            .append("ddate", getDdate())
            .append("supplierId", getSupplierId())
            .append("spare1", getSpare1())
            .append("spare2", getSpare2())
            .append("spare3", getSpare3())
            .append("spare4", getSpare4())
            .toString();
    }
}
